<?php
/**
 * Defines the centers cubies
 * 
 * @package CubeModel
 * @since   Oct 19, 2006
 * @author  Christophe Thiriot
 */
 
 
/**
 * The class of the centers
 * 
 * @package CubeModel  
*/
class center extends cubie {
    const MAX_CENTER = 4;
    /**
     * Constructor
     */
    public function __construct($opos) 
    {
        parent::__construct(parent::CENTER);
        if (is_numeric($opos) && $opos<=self::MAX_CENTER && $opos>=0) {
        	$this->originPosition = $opos;
        } else {
        	throw new Exception('center::__construct : Bad center origin position');
        }
    }
}
?>